package com.n9.product.dao;

import com.n9.base.dao.BaseRepository;
import com.n9.product.entity.Tag;
import org.springframework.stereotype.Repository;

/**
 * 标签接口
 * @author ice
 * @since 2019/5/22 14:30
 */
@Repository
public interface TagDao extends BaseRepository<Tag, Integer> {

    /**
     * 根据名称查询标签
     * @param name
     * @return
     */
    Tag findOneByName(String name);
}
